var e = require;
var t = module;
var o = exports;
Object.defineProperty(o, "__esModule", {value: !0});
var n = e("UIManager"),
    a = e("AD"),
    i = e("BaseModuleUI"),
    r = e("NotifyEventType"),
    s = e("AudioManager"),
    l = cc._decorator,
    c = l.ccclass,
    d = l.property,
    h = (function (e) {
        function t() {
            var t = (null !== e && e.apply(this, arguments)) || this;
            return (t.popup_node = null), (t.uiManager = null), t;
        }
        return (
            __extends(t, e),
            (t.prototype.initView = function () {
                var e = this;
                (this.uiManager = cc.find("UIManager").getComponent(n.default)),
                    this.popup_node &&
                        ((this.popup_node.scale = 0),
                        setTimeout(function () {
                            s.default.getInstance().playFx("popup"),
                                e.emitEvent(r.default.SEND_BOX_PORTAL_INFO, !1),
                                a.default.getInstance().showInter();
                        }, 500),
                        cc.tween(this.popup_node).to(1, {scale: 1}, {easing: "quintOut"}).start());
            }),
            (t.prototype.closeThisPopup = function () {
                var e = this;
                this.popup_node &&
                    cc
                        .tween(this.popup_node)
                        .to(0.3, {scale: 0})
                        .call(function () {
                            e.node.active = !1;
                        })
                        .start();
            }),
            __decorate([d(cc.Node)], t.prototype, "popup_node", void 0),
            __decorate([c], t)
        );
    })(i.default);
o.default = h;
